package com.hknc.btscale.utils;

import com.hknc.btscale.bean.NormalResponse;
import com.hknc.btscale.bean.UploadStatus;
import com.hknc.btscale.utils.network.ApiWrapper;
import com.hknc.btscale.utils.network.MyObserver;
import com.hknc.btscale.utils.network.RxHelper;
import com.hknc.btscale.utils.network.exception.ExceptionHandle;

import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.Disposable;

/**
 * Created by guiyongsun on 2021/6/29 15:22.
 *
 * @Description:
 */
public class Model {
    public static void parametersAndIsLock(UploadStatus uploadStatus) {
        ApiWrapper.getInstance().parametersAndIsLock(uploadStatus)
                .compose(RxHelper.to_mian())
                .subscribe(new MyObserver<NormalResponse>() {
                    @Override
                    public void onError(ExceptionHandle.ResponseException responseException) {

                    }

                    @Override
                    public void onSubscribe(@NonNull Disposable d) {

                    }

                    @Override
                    public void onNext(@NonNull NormalResponse normalResponse) {

                    }

                    @Override
                    public void onComplete() {

                    }
                });
    }
}
